<?php

namespace App\Models;

class Honey extends Base
{
    protected $table = 'honey';


    public static function hasSendCount($user_id, $work_id) {
        return self::where('user_id', $user_id)->where('work_id', $work_id)->where('date', date('Y-m-d'))->count();
    }
}
